package NovelBar.controller;


import NovelBar.entity.User;
import NovelBar.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
// ��¼�ӿ��ļ�
public class LoginController {
	
	@Autowired
	private UserService userService;
	// �Զ����¼ҳ��
	@RequestMapping("/login_page")
	public String loginPage () {
		return "loginPage";
	}
	// ע��ӿ�
	@RequestMapping("/public/regester")
	public boolean regester(User user) {
		return userService.addUser(user);
	}

}
